#!/bin/bash -f

rm output.m

#VAR=1


#if [ "$1" = 1 ]; then
#    cp mandelbrot_balanced.c mandelbrot.c
#fi


echo "time_data = [ " > output.m

rm indata.txt
#bash rand 0 1000 100000 > indata.txt
for i in {0..8}
do
    make clean
    make NB_THREADS=$i 
    #ALGORITHM="1"
    #for try in {1..10}
    #do
	./stack >> output.m
    #done
done

echo "];" >> output.m